<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><include file="./Application/Home/View/Common/title_prefix_text.html"/>定制采集</title>
    <include file="./Application/Home/View/Common/head_meta.html"/>
</head>
<body>
<div class="wrap">
    <!--页面头部-->
    <include file="./Application/Home/View/Common/backup/header_nav.html" />
    <!-- 页面主体 -->
    <div class="main addcollect">
        <div class="addcollect_nr">
            <h2>定制采集</h2>
            <p class="jieshao">提交账号信息及最近一周发布的某一篇文章链接，审核通过后我们将采集相应<br/>账号信息及其历史文章</p>
            <div bw-columns="" class="bw-columns"></div>
            <div class="addcollect_lower">
                <div class="content">
                    <div class="platform_selec clearfix">
                        <span class="current">微信公众号采集</span>
                        <span>今日头条号采集</span>
                    </div>
                    <div class="platform_nr">
                        <div class="platform_cont show">
                            <form data-platform="mp.weixin.qq.com">
                                <input type="hidden" value="mp.weixin.qq.com" name="platform" >
                                <input type="text" placeholder="输入待采集的微信公众号账号名称" name="name" />
                                <textarea name="history_link" spellcheck="false" placeholder="输入待采集的微信公众号历史文章链接"></textarea>
                                <div class="case clearfix">
                                    <div class="fl">例：</div>
                                    <div class="fl lianj">http://mp.weixin.qq.com/s?__biz=MzI2NTUwNTUxOA==&mid=2247484169&idx=1&sn=90d286cfc967971d1a3df99e269e61e5&chksm=ea9d1c88ddea959e8efc5df1e81972a3f23b9cdcda54cd275d3cd169409168191e60423e8f0b&scene=4</div>
                                </div>
                                <input type="submit" value="提交" class="btn btn-success"/>
                            </form>
                        </div>
                        <div class="platform_cont">
                           <form data-platform="toutiao.com">
                                <input type="hidden" value="toutiao.com" name="platform" >
                                <input type="text" placeholder="输入待采集的今日头条号账号名称" name="name" />
                                <textarea name="history_link" spellcheck="false" placeholder="输入待采集的今日头条号历史文章链接"></textarea>
                                <div class="case clearfix">
                                    <div class="fl">例：</div>
                                    <div class="fl lianj">
                                        http://www.toutiao.com/a6341477574023495937/
                                    </div>
                                </div>
                                <input type="submit" value="提交" class="btn btn-success"/>
                           </form>
                        </div>
                    </div>
                </div>
                <div class="content" style="display: none;">
                    <p align="center" class="batch_import">
                        <a class="btn btn-success2 batch_import_download" href="/account_verify/get_templete" class="blue">批量导入模板下载</a>
                    </p>
                    <div class="import_tile_ipt">
                        <input type="text" readonly="readonly" placeholder="选择待导入的文件" id="ipt_file_name" />
                        <form id="importTemplate" class="hide">
                            <input type="file" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.csv" id="inp_template" name="accounts" />
                        </form>
                        <button type="button" class="btn btn-success" id="choose_file">选择</button>
                    </div>
                    <p class="gray" id="progress_text" >&nbsp;</p>
                    <div class="progress_container">
                        <div class="file_progress">
                            <div class="inner_progress"></div>
                        </div>
                        <span id="progress" class="gray">0%</span>
                    </div>
                    <div id="import_result_container">
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--页面底部-->
    <include file="./Application/Home/View/Common/footer.html" />
</div>
<script type="text/html" id="import_result_html">
<div class="import_result">
    <div class="result_header">
        <span class="pull-left">导入结果</span>
        <a href="/accountVerify/get_import_result" class="blue pull-right">下载导入结果</a>
    </div>
    <ol class="import_count">
        <li>
            <p class="gray text">文档中包含记录</p>
            <span class="green color_text">{{count}}</span>
        </li>
        <li>
            <p class="gray text">导入成功</p>
            <span class="green color_text">{{success_count}}</span>
        </li>
        <li>
            <p class="gray text">导入失败</p>
            <span class="red color_text">{{fail_count}}</span>
        </li>
    </ol>
    <table class="result_detal">
        <thead>
            <tr>
                <td width="50%">文档行列</td>
                <td>失败情况</td>
            </tr>
        </thead>
        <tbody>
            {{each errors as value i}}
            <tr class="gray">
                <td>{{value[0]}}</td>
                <td>{{value[1]}}</td>
            </tr>
            {{/each}}
        </tbody>
    </table>
    <br/>
    <p align="center" class="gray">更多详情请&nbsp;<a href="/accountVerify/get_import_result" class="blue">下载导入结果</a></p>
</div>
</script>
<script type="text/javascript" src="/__webpack-accountVerify/addGather.js"></script></body>
</html>